package com.hnichr.ping.common.vo;


import java.io.Serializable;

public class TenantResultVo implements Serializable {
    private static final long serialVersionUID = -1L;

    private String code;

    private String msg;

    private String tenantCode;

    private String tenantName;

    private String messageType;

    private String appKey;

    private String appSecret;

    public String getCode() {
        return code;
    }

    public static TenantResultVo getSuccess(){
        TenantResultVo vo = new TenantResultVo();
        vo.setCode("00");
        vo.setMsg("OK");
        return vo;
    }

    public static TenantResultVo getFailed(String msg){
        TenantResultVo vo = new TenantResultVo();
        vo.setCode("99");
        vo.setMsg(msg);
        return vo;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    @Override
    public String toString() {
        return "TenantResultVo{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", tenantCode='" + tenantCode + '\'' +
                ", tenantName='" + tenantName + '\'' +
                ", messageType='" + messageType + '\'' +
                ", appKey='" + appKey + '\'' +
                ", appSecret='" + appSecret + '\'' +
                '}';
    }
}
